This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Dec 11, 2012, 8:04 PM
90 Posts

Date Only part of a date/time - how?

  • Category: Other
  • Platform: All
  • Release: 8.5.3
  • Role: Developer
  • Tags: Date Format
  • Replies: 1
Date Only part of a date/time - how?

I want : 12/12/2010 *not* 12/12/2010 12:00 AM

Am doing a bit of JavaScript:

ThisEndDate = @Adjust(ThisStartDate, 0, 0, 13, 0, 0, 0);
ThisEndDate = ThisEndDate.getDateOnly();

But I get an error and have not despite a few hours been able to figure out how to make both it and me happy: "[TypeError] Error calling method 'getDateOnly()' on an object of type 'Date [JavaScript Object]'"

Any help appreciated.
Dec 11, 2012, 11:44 PM
15 Posts
Re: Date Only part of a date/time - how?
Try replacing your second line with:
ThisEndDate = ThisEndDate.toDateString();
 
toDateString() is the javascript method to return just the date formatted as a string.
If the format's not exactly right, you can use other methods of the javascript date object. There's a list of them here: http://www.w3schools.com/jsref/jsref_obj_date.asp

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal